<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>install java in ubuntu</title>
</head>
<body>
<pre>
	1. sudo add-apt-repository ppa:webupd8team/java
	2.  sudo apt-get update
	3.  apt-get install -y oracle-java7-installer
</pre>	

<hr />
<code>
sudo add-apt-repository ppa:webupd8team/java<br>
sudo apt-get update<br>
sudo apt-get install oracle-java7-installer<br>
</code>
</body>
</html>